__author__ = 'dmitry'

from django.shortcuts import redirect
from courseraapi.api import *
import courseraapi.auth as courseraauth

def start(request):
    return redirect(courseraauth.generate_redirect_uri())

def my_courses(request):
    return get_user_courses(courseraauth.get_user_access_token(request))

